package miku.firstgame.ui.card
{
	import miku.firstgame.entity.Bomb;

	import starling.display.Quad;

	/**
	 * 用于检测卡牌移动的区域
	 * */
	public class ValidateCardArea extends Quad
	{
		private var normalColor:uint = 0xff0000;
		private var selectColor:uint = 0x00ff00;

		public function ValidateCardArea()
		{
			super(CardUI.WIDTH, CardUI.HEIGHT, normalColor, true);
			this.alpha = 0.3;
		}

		public function set selected(value:Boolean):void
		{
			if (value)
			{
				this.color = selectColor;
			}
			else
			{
				this.color = normalColor;
			}
		}

	}
}
